﻿using UnityEngine;
using System.Collections;

/// <summary>
/// Handles the action of entering a building in the village
/// </summary>
public class EnterBuildingAction : BaseAction {

	//Name of the building to enter
	public string BuildingName;

	//Game object containing the page to show for this building
	public GameObject BuildingPage;

	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
	
	}

	public override void ExecuteAction(){
		if(BuildingPage != null){
			Debug.Log ("Enter Building: " + BuildingName);
			BuildingPage.SetActive(true);
		}
	}
}
